import $http from '@/assets/js/http'

//查询供应列表
export function getSupplyList(type,name,index, size) {
    return $http.get('/manage/supply/list', {
        params: {isChecked:type,productName:name,pageIndex: index, pageSize: size }
    });
}


//删除供应
export function postDeleteSupply(delId) {
    return $http.post('/manage/supply/delete', {
        id: delId
    });
}
//供应详情
export function getSupplyDeatils(id) {
    return $http.get('/manage/supply/detail', {
        params: {id:id }
    });
}

